package com.telit.common.enums;

/**
 * 业务操作类型
 Create by Chencf 2022/11/22
 */
public enum BusinessOperatorType {

         NO(0,"无"),
        JJBJ(11, "接警报警"),

        HQZJ(21, "扩大响应"),
        RWXF(23, "任务下发"),
        HDJP(24, "火点纠偏"),
        QRHQ(25, "确认火情"),
        QRFHQ(26, "确认非火情"),
        CFHQ(27, "重复火情"),

        HQSB(31, "火情上报"),
        GJXF(32, "告警下发"),
        XQJY(33, "抢险救援"),
        WCCZ(34, "完成处置"),
        WCPJ(35, "抢险救援(完成扑救)"),
        ZHDD(36, "指挥调度"),

         ZJQS(51, "扩大响应签收"),
         SBQS(52, "上报签收"),

    ;

    private Integer code;
    private String str;

    BusinessOperatorType(int code, String str) {
        this.code = code;
        this.str = str;
    }

    public Integer getCode() {
        return code;
    }

    public String getStr() {
        return str;
    }

    /**
     * 根据code  获取对应的str描述字符串
     */
    public static String code2Str(Integer code) {
        if (code==null)
            return null;
        for (BusinessOperatorType statusNum : BusinessOperatorType.values()) {
            if (statusNum.getCode().equals(code)) {
                return statusNum.getStr();
            }
        }
        return null;
    }


}
